<template>
  <div class="rightBodyContent">
    <div class="rightBodyContent-in">
      <div class="mycenter-in">
        <!--我的待办事项-->
        <powerUser></powerUser>
        <!--数据权限-->
        <powerIndex></powerIndex>
        <!--快捷功能-->
        <div>
          <div class="mycenter-in-box">
            <p class="mycenter-in-box-title">快捷功能</p>
            <div class="mycenter-in-box-box">
              <div class="mycenter-in-box-box-list" @click="pathIndexFn('task')">
                <div class="mycenter-in-box-box-list-l color-02">
                  <i class="iconfont iconrenwu"></i>
                </div>
                <div class="mycenter-in-box-box-list-r">
                  <p class="big-title">我的任务</p>
                  <p class="smal-title">任务接受进度</p>
                </div>
              </div>
              <div class="mycenter-in-box-box-list" @click="pathIndexFn('book')">
                <div class="mycenter-in-box-box-list-l color-01">
                  <i class="iconfont icontushu1"></i>
                </div>
                <div class="mycenter-in-box-box-list-r">
                  <p class="big-title">我的图书</p>
                  <p class="smal-title">校园图书借阅管理</p>
                </div>
              </div>
              <div class="mycenter-in-box-box-list" @click="pathIndexFn('materiel')">
                <div class="mycenter-in-box-box-list-l color-03">
                  <i class="iconfont iconwuliao1"></i>
                </div>
                <div class="mycenter-in-box-box-list-r">
                  <p class="big-title">我的物料</p>
                  <p class="smal-title">物料申请领取</p>
                </div>
              </div>
              <div class="mycenter-in-box-box-list" @click="pathIndexFn('teaching')">
                <div class="mycenter-in-box-box-list-l color-04">
                  <i class="iconfont iconwodejiaoju"></i>
                </div>
                <div class="mycenter-in-box-box-list-r">
                  <p class="big-title">我的教具</p>
                  <p class="smal-title">教具申请领取</p>
                </div>
              </div>
            </div>
          </div>
          <div class="mycenter-in-box">
            <div class="mycenter-in-box-box">
              <div class="mycenter-in-box-box-list" @click="pathIndexFn('questionmylist')">
                <div class="mycenter-in-box-box-list-l color-05">
                  <i class="iconfont iconwenjuan"></i>
                </div>
                <div class="mycenter-in-box-box-list-r">
                  <p class="big-title">内部问卷</p>
                  <p class="smal-title">学校职工内部问卷</p>
                </div>
              </div>
              <div class="mycenter-in-box-box-list" @click="pathIndexFn('vote')">
                <div class="mycenter-in-box-box-list-l color-06">
                  <i class="iconfont iconquyu"></i>
                </div>
                <div class="mycenter-in-box-box-list-r">
                  <p class="big-title">内部投票</p>
                  <p class="smal-title">学校职工内部投票</p>
                </div>
              </div>
              <div class="mycenter-in-box-box-list" @click="pathIndexFn('NoticeList')">
                <div class="mycenter-in-box-box-list-l color-07">
                  <i class="iconfont icontongzhi1"></i>
                </div>
                <div class="mycenter-in-box-box-list-r">
                  <p class="big-title">电子通知</p>
                  <p class="smal-title">学校电子通知家长反馈记录</p>
                </div>
              </div>
              <div class="mycenter-in-box-box-list" @click="pathIndexFn('questionnaireList')">
                <div class="mycenter-in-box-box-list-l color-08">
                  <i class="iconfont iconwenjuan2"></i>
                </div>
                <div class="mycenter-in-box-box-list-r">
                  <p class="big-title">调查问卷</p>
                  <p class="smal-title">学校调查问卷家长反馈记录</p>
                </div>
              </div>
            </div>
          </div>
          <div class="mycenter-in-box">
            <div class="mycenter-in-box-box">
              <div class="mycenter-in-box-box-list" @click="pathIndexFn('evaluateIndex')">
                <div class="mycenter-in-box-box-list-l color-09">
                  <i class="iconfont iconwendang1"></i>
                </div>
                <div class="mycenter-in-box-box-list-r">
                  <p class="big-title">发育报告</p>
                  <p class="smal-title">校园学生发育成长记录</p>
                </div>
              </div>
              <div class="mycenter-in-box-box-list marginNone" @click="pathIndexFn('mapIndex')">
                <div class="mycenter-in-box-box-list-l color-10">
                  <i class="iconfont icondditu"></i>
                </div>
                <div class="mycenter-in-box-box-list-r">
                  <p class="big-title">3D校园地图</p>
                  <p class="smal-title">展示校园3D效果，位置</p>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="height40"></div>
      </div>
    </div>
  </div>
</template>

<script>
  import {usercenter} from '@/utils/util.js'
  import userInfo from '@/components/dialog/userInfo.vue'
  import userbg from '@/assets/imageAdmin/userbg.png'
  import defultimg from '@/assets/imageAdmin/defultimg.jpg'
  import foucseBox from '@/assets/imageAdmin/focese.png'
  import powerIndex from '@/components/power/powerIndex'
  import powerUser from '@/components/power/powerUser'

  export default {
    components: {
      userbg,
      defultimg,
      userInfo,
      foucseBox,
      powerIndex,
      powerUser
    },
    data () {
      return {
        usercenter: usercenter,
        userbg: userbg,
        foucseBox: foucseBox,
        userInfo: null
      }
    },
    created () {
    },
    methods: {
      statisticsFn () {
        this.$fetch(this.api.statistics, {}).then((response) => {
          if (response.code === 0) {
            this.statisticsData = response
          } else {
          }
        }).catch((err) => {
          console.log(err)
        })
      },
      pathIndexFn (option) {
        this.$router.push(usercenter[option])
      }
    },
    mounted () {
    }
  }
</script>
